package com.jt.controller;

import com.jt.service.MovieService;
import com.jt.vo.PageResult;
import com.jt.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/movie")
public class MovieController {

    @Autowired
    private MovieService movieService;

    @GetMapping("/getMovieList")
    public SysResult getMovieList(PageResult pageResult){
       pageResult = movieService.getMovieList(pageResult);
       return SysResult.success(pageResult);
    }
}
